home *** CD-ROM | disk | FTP | other *** search
-
- /*
- ** Simple test program for DDEIO.LIB
- ** DDEIO.LIB enables a clipper program to communicate with
- ** windows programs using DDE or Dynamic Data Exchnage.
- **
- ** This example establishes a conversation with the Windows
- ** Program Manager
- ** 1) Creates a new group
- ** 2) Ask for list of all groups
- **
- ** Link this program with DDEIO.LIB
- */
-
-
- channel = DDEInitiate("PROGMAN", "PROGMAN", 20)
- IF channel < 1 .OR. channel > 8
- ? "Could not open Progman Manager", channel
- BREAK
- ENDIF
-
- /*
- error_code = DDEExecute(channel, "[CreateGroup(Clipper Test)]", 30)
- if error_code != 0
- ? "Execute Failed", error_code
- ENDIF
- */
-
-
- groups = ""
-
- error_code = DDERequest(channel, "Address", @groups, 30)
- IF error_code != 0
- ? "Execute Failed", error_code
- ELSE
- ? "item :", groups
- ENDIF
-
-
-
- error_code = DDETerminate(channel)
- if error_code != 0
- ? "Terminate return", error_code
- ENDIF
-
-